package com.fuqi.android.zhongcai.base.request.api;


import com.android.volley.Response.ErrorListener;
import com.android.volley.Response.Listener;
import com.fuqi.android.zhongcai.base.ApiUrl;
import com.fuqi.android.zhongcai.base.request.result.TrainListResult;
import com.fuqi.framework.network.api.AbsRequest;
import com.fuqi.framework.network.params.BaseParams;


/*
*  获取培训信息接口
* */


public class TrainListApi extends AbsRequest<TrainListApi.TrainListParams, TrainListResult[]> {

    public TrainListApi(TrainListParams trainListParams, Listener<TrainListResult[]> listener, ErrorListener errorListener) {
        super(Method.POST, ApiUrl.getTrainListUrl(), trainListParams, listener, errorListener, TrainListResult[].class);
    }

    public static class TrainListParams extends BaseParams {

        public TrainListParams(String showCount,String currentPage) {

            put("showCount", showCount);
            put("currentPage", currentPage);

        }
    }


}
